package com.itheima.design.mode.factory.simple;

public class SimpleFactory {

    public Milk getMilk(String name){

        if("mengniu".equals(name)){
            return new MengNiu();
        }else if ("yili".equals(name)){
            return new YiLi();
        }else {
            return new ZhuangYuan();
        }
    }
}
